<?php get_header() ?>                                    
<div id="main">                                                                             
    <div id="middle-main">
        <div id="left">
            <?php
            if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar_left')) {
                
            }
            ?>                                 
        </div>
        <div id="content">            
            <div class="content-detail">
                <div class="frame-content">                    
                    <h2 class="content-title"><?php woocommerce_page_title(); ?></h2>
                    <div class="content-main product-list">
                        <?php if (have_posts()) : ?>

                            <?php woocommerce_product_loop_start(); ?>

                            <?php woocommerce_product_subcategories(); ?>

                            <?php while (have_posts()) : the_post(); ?>

                                <?php woocommerce_get_template_part('content', 'product'); ?>

                            <?php endwhile; // end of the loop. ?>

                            <?php woocommerce_product_loop_end(); ?>


                        <?php elseif (!woocommerce_product_subcategories(array('before' => woocommerce_product_loop_start(false), 'after' => woocommerce_product_loop_end(false)))) : ?>

                            <?php woocommerce_get_template('loop/no-products-found.php'); ?>

                        <?php endif; ?>
                    </div>                    
                </div>                
            </div>
        </div>
        <div id="right">
            <?php
            if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar_right')) {
                
            }
            ?>
        </div>
    </div>    
</div>                        
<?php get_footer(); ?>